package com.ruoyi.match.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 match_health
 * 
 * @author å®è¿å
 * @date 2021-03-07
 */
public class MatchHealth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宝宝健康温度湿度咳嗽 */
    private Long id;

    /** 宝宝温度 */
    @Excel(name = "宝宝温度")
    private Double temperature;

    /** 湿度  */
    @Excel(name = "湿度 ")
    private Double humidity;

    /** 咳嗽 */
    @Excel(name = "咳嗽")
    private Integer cough;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datatime;

    /** 用户id */
    @Excel(name = "用户id")
    private String uid;

    /** 设备id */
    @Excel(name = "设备id")
    private String equipmentId;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTemperature(Double temperature)
    {
        this.temperature = temperature;
    }

    public Double getTemperature()
    {
        return temperature;
    }
    public void setHumidity(Double humidity)
    {
        this.humidity = humidity;
    }

    public Double getHumidity()
    {
        return humidity;
    }
    public void setCough(Integer cough)
    {
        this.cough = cough;
    }

    public Integer getCough()
    {
        return cough;
    }
    public void setDatatime(Date datatime) 
    {
        this.datatime = datatime;
    }

    public Date getDatatime() 
    {
        return datatime;
    }
    public void setUid(String uid) 
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }
    public void setEquipmentId(String equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentId() 
    {
        return equipmentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("temperature", getTemperature())
            .append("humidity", getHumidity())
            .append("cough", getCough())
            .append("datatime", getDatatime())
            .append("uid", getUid())
            .append("equipmentId", getEquipmentId())
            .toString();
    }
}
